const {mysql} = require('../qcloud')

module.exports = async (ctx) => {
    const {id} = ctx.request.query
    const topicDetail = await mysql('nideshop_topic')
        .where({id})
        .select()

    ctx.state.data = {
        topicDetail: topicDetail[0]
    }
}
